package choopexer1;

public class CarTest {
    public static void main(String[] args) {
        Car car = new Car();
        car.tyre="普利司通";
        car.frame="中梁式车架";
        car.chassis="承载式";
        car.color="白色";
        car.price=660000;

        Engine e = new Engine();
        car.engine=e;
        e.brand="本田发动机";
        e.displacement=2.0;
        e.horsepower=250;
        e.weight=200;//kg
        e.horsepower=220;

        car.show();
        e.show();
        System.out.println("***********");
        car.run();
        car.whistle();
        car.stop();



    }
}
